home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_xemacs.idb / usr / freeware / lib / xemacs-20.4 / lisp / modes / view-less.elc.z / view-less.elc
Emacs Compiled Lisp  |  1998-05-21  |  10.5 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
100% file Emacs/XEmacs v20 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 14 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 6a 75 73 74 69 6e 62 |piled by| justinb|
|00000020| 40 65 62 6f 6e 79 2e 63 | 72 61 79 2e 63 6f 6d 20 |@ebony.c|ray.com |
|00000030| 6f 6e 20 4d 6f 6e 20 4d | 61 72 20 20 39 20 31 32 |on Mon M|ar 9 12|
|00000040| 3a 35 31 3a 35 31 20 31 | 39 39 38 0a 3b 3b 3b 20 |:51:51 1|998.;;; |
|00000050| 66 72 6f 6d 20 66 69 6c | 65 20 2f 68 6f 6d 65 2f |from fil|e /home/|
|00000060| 61 73 70 65 6e 30 37 2f | 6a 75 73 74 69 6e 62 2f |aspen07/|justinb/|
|00000070| 72 6f 6f 74 73 2f 66 72 | 65 65 77 61 72 65 2f 78 |roots/fr|eeware/x|
|00000080| 65 6d 61 63 73 2f 32 30 | 2e 33 2f 78 65 6d 61 63 |emacs/20|.3/xemac|
|00000090| 73 2d 32 30 2e 33 2f 6c | 69 73 70 2f 6d 6f 64 65 |s-20.3/l|isp/mode|
|000000a0| 73 2f 76 69 65 77 2d 6c | 65 73 73 2e 65 6c 0a 3b |s/view-l|ess.el.;|
|000000b0| 3b 3b 20 65 6d 61 63 73 | 20 76 65 72 73 69 6f 6e |;; emacs| version|
|000000c0| 20 32 30 2e 34 20 22 45 | 6d 65 72 61 6c 64 22 20 | 20.4 "E|merald" |
|000000d0| 58 45 6d 61 63 73 20 20 | 4c 75 63 69 64 2e 0a 3b |XEmacs |Lucid..;|
|000000e0| 3b 3b 20 62 79 74 65 63 | 6f 6d 70 20 76 65 72 73 |;; bytec|omp vers|
|000000f0| 69 6f 6e 20 32 2e 32 35 | 20 58 45 6d 61 63 73 3b |ion 2.25| XEmacs;|
|00000100| 20 32 32 2d 4d 61 72 2d | 39 36 2e 0a 3b 3b 3b 20 | 22-Mar-|96..;;; |
|00000110| 6f 70 74 69 6d 69 7a 61 | 74 69 6f 6e 20 69 73 20 |optimiza|tion is |
|00000120| 6f 6e 2e 0a 3b 3b 3b 20 | 74 68 69 73 20 66 69 6c |on..;;; |this fil|
|00000130| 65 20 75 73 65 73 20 6f | 70 63 6f 64 65 73 20 77 |e uses o|pcodes w|
|00000140| 68 69 63 68 20 64 6f 20 | 6e 6f 74 20 65 78 69 73 |hich do |not exis|
|00000150| 74 20 69 6e 20 45 6d 61 | 63 73 20 31 39 2e 0a 0a |t in Ema|cs 19...|
|00000160| 28 69 66 20 28 61 6e 64 | 20 28 62 6f 75 6e 64 70 |(if (and| (boundp|
|00000170| 20 27 65 6d 61 63 73 2d | 76 65 72 73 69 6f 6e 29 | 'emacs-|version)|
|00000180| 0a 09 20 28 6f 72 20 28 | 61 6e 64 20 28 62 6f 75 |.. (or (|and (bou|
|00000190| 6e 64 70 20 27 65 70 6f | 63 68 3a 3a 76 65 72 73 |ndp 'epo|ch::vers|
|000001a0| 69 6f 6e 29 20 65 70 6f | 63 68 3a 3a 76 65 72 73 |ion) epo|ch::vers|
|000001b0| 69 6f 6e 29 0a 09 20 20 | 20 20 20 28 73 74 72 69 |ion).. | (stri|
|000001c0| 6e 67 2d 6c 65 73 73 70 | 20 65 6d 61 63 73 2d 76 |ng-lessp| emacs-v|
|000001d0| 65 72 73 69 6f 6e 20 22 | 32 30 22 29 29 29 0a 20 |ersion "|20"))). |
|000001e0| 20 20 20 28 65 72 72 6f | 72 20 22 60 76 69 65 77 | (erro|r "`view|
|000001f0| 2d 6c 65 73 73 2e 65 6c | 27 20 77 61 73 20 63 6f |-less.el|' was co|
|00000200| 6d 70 69 6c 65 64 20 66 | 6f 72 20 45 6d 61 63 73 |mpiled f|or Emacs|
|00000210| 20 32 30 22 29 29 0a 0a | 28 6f 72 20 28 62 6f 75 | 20"))..|(or (bou|
|00000220| 6e 64 70 20 27 63 75 72 | 72 65 6e 74 2d 6c 6f 61 |ndp 'cur|rent-loa|
|00000230| 64 2d 6c 69 73 74 29 20 | 28 73 65 74 71 20 63 75 |d-list) |(setq cu|
|00000240| 72 72 65 6e 74 2d 6c 6f | 61 64 2d 6c 69 73 74 20 |rrent-lo|ad-list |
|00000250| 6e 69 6c 29 29 0a 0a 0a | 23 40 35 34 20 4c 61 73 |nil))...|#@54 Las|
|00000260| 74 20 73 74 72 69 6e 67 | 20 73 65 61 72 63 68 65 |t string| searche|
|00000270| 64 20 66 6f 72 20 77 69 | 74 68 20 76 69 65 77 2d |d for wi|th view-|
|00000280| 73 65 61 72 63 68 20 66 | 75 6e 63 74 69 6f 6e 73 |search f|unctions|
|00000290| 2e 1f 0a 28 64 65 66 76 | 61 72 20 76 69 65 77 2d |...(defv|ar view-|
|000002a0| 73 65 61 72 63 68 2d 73 | 74 72 69 6e 67 20 22 22 |search-s|tring ""|
|000002b0| 20 28 23 24 20 2e 20 36 | 30 35 29 29 0a 23 40 33 | (#$ . 6|05)).#@3|
|000002c0| 31 20 41 72 67 75 6d 65 | 6e 74 20 74 6f 20 6c 61 |1 Argume|nt to la|
|000002d0| 73 74 20 76 69 65 77 20 | 73 65 61 72 63 68 2e 1f |st view |search..|
|000002e0| 0a 28 64 65 66 76 61 72 | 20 76 69 65 77 2d 73 65 |.(defvar| view-se|
|000002f0| 61 72 63 68 2d 61 72 67 | 20 31 20 28 23 24 20 2e |arch-arg| 1 (#$ .|
|00000300| 20 37 30 36 29 29 0a 23 | 40 35 37 20 44 65 66 61 | 706)).#|@57 Defa|
|00000310| 75 6c 74 20 76 61 6c 75 | 65 20 66 6f 72 20 74 68 |ult valu|e for th|
|00000320| 65 20 22 64 22 20 61 6e | 64 20 22 75 22 20 63 6f |e "d" an|d "u" co|
|00000330| 6d 6d 61 6e 64 73 20 69 | 6e 20 76 69 65 77 2d 6d |mmands i|n view-m|
|00000340| 6f 64 65 1f 0a 28 64 65 | 66 76 61 72 20 76 69 65 |ode..(de|fvar vie|
|00000350| 77 2d 64 65 66 61 75 6c | 74 2d 6c 69 6e 65 73 20 |w-defaul|t-lines |
|00000360| 31 30 20 28 23 24 20 2e | 20 37 38 30 29 29 0a 23 |10 (#$ .| 780)).#|
|00000370| 40 36 34 20 4e 6f 6e 2d | 6e 69 6c 20 77 68 65 6e |@64 Non-|nil when|
|00000380| 20 76 69 65 77 2d 6d 6f | 64 65 20 69 73 20 61 63 | view-mo|de is ac|
|00000390| 74 69 76 65 2e 20 20 43 | 61 6c 6c 20 60 76 69 65 |tive. C|all `vie|
|000003a0| 77 2d 6d 6f 64 65 27 20 | 74 6f 20 74 6f 67 67 6c |w-mode' |to toggl|
|000003b0| 65 2e 1f 0a 28 64 65 66 | 76 61 72 20 76 69 65 77 |e...(def|var view|
|000003c0| 2d 6d 69 6e 6f 72 2d 6d | 6f 64 65 20 6e 69 6c 20 |-minor-m|ode nil |
|000003d0| 28 23 24 20 2e 20 38 38 | 34 29 29 0a 28 62 79 74 |(#$ . 88|4)).(byt|
|000003e0| 65 2d 63 6f 64 65 20 22 | c0 c1 21 88 c2 c3 21 84 |e-code "|..!...!.|
|000003f0| 11 01 c4 20 1d c6 0d c3 | 5c 22 88 c7 0d 21 88 c8 |... ....|\"...!..|
|00000400| 0d c9 ca 23 88 c8 0d cb | cc 23 88 c8 0d cd cc 23 |...#....|.#.....#|
|00000410| 88 c8 0d ce cf 23 88 c8 | 0d d0 cf 23 88 c8 0d d1 |.....#..|...#....|
|00000420| cf 23 88 c8 0d d2 d3 23 | 88 c8 0d d4 d3 23 88 c8 |.#.....#|.....#..|
|00000430| 0d d5 d3 23 88 c8 0d d6 | d3 23 88 c8 0d d7 d8 23 |...#....|.#.....#|
|00000440| 88 c8 0d d9 d8 23 88 c8 | 0d da db 23 88 c8 0d dc |.....#..|...#....|
|00000450| dd 23 88 c8 0d de df 23 | 88 c8 0d e0 e1 23 88 c8 |.#.....#|.....#..|
|00000460| 0d e2 e3 23 88 c8 0d e4 | e5 23 88 c8 0d e6 e3 23 |...#....|.#.....#|
|00000470| 88 c8 0d e7 e8 23 88 c8 | 0d e9 ea 23 88 c8 0d eb |.....#..|...#....|
|00000480| ec 23 88 c8 0d ed ee 23 | 88 c8 0d ef f0 23 88 c8 |.#.....#|.....#..|
|00000490| 0d f1 f2 23 88 c8 0d f3 | f2 23 88 c8 0d f4 f5 23 |...#....|.#.....#|
|000004a0| 88 c8 0d f6 ee 23 88 c8 | 0d f7 f8 23 88 c8 0d f9 |.....#..|...#....|
|000004b0| fa 23 88 c8 0d fb fc 23 | 88 c8 0d fd fc 23 88 c8 |.#.....#|.....#..|
|000004c0| 0d fe ff 23 88 c8 0d 81 | 40 00 81 41 00 23 88 c8 |...#....|@..A.#..|
|000004d0| 0d 81 42 00 81 43 00 23 | 88 c8 0d 81 44 00 81 45 |..B..C.#|....D..E|
|000004e0| 00 23 88 c8 0d 81 46 00 | 81 47 00 23 88 c8 0d 81 |.#....F.|.G.#....|
|000004f0| 48 00 81 45 00 23 88 0d | 29 13 c3 0e 49 42 16 49 |H..E.#..|)...IB.I|
|00000500| 81 4a 00 c1 81 4b 00 0b | 23 88 c2 81 4c 00 21 ac |.J...K..|#...L.!.|
|00000510| 91 81 4d 00 0b 21 1d c6 | 0d 81 4c 00 5c 22 88 0d |..M..!..|..L.\"..|
|00000520| 29 16 4c 81 4c 00 0e 49 | 42 16 49 c0 87 22 20 5b |).L.L..I|B.I.." [|
|00000530| 6d 61 6b 65 2d 76 61 72 | 69 61 62 6c 65 2d 62 75 |make-var|iable-bu|
|00000540| 66 66 65 72 2d 6c 6f 63 | 61 6c 20 76 69 65 77 2d |ffer-loc|al view-|
|00000550| 6d 69 6e 6f 72 2d 6d 6f | 64 65 20 62 6f 75 6e 64 |minor-mo|de bound|
|00000560| 70 20 76 69 65 77 2d 6d | 69 6e 6f 72 2d 6d 6f 64 |p view-m|inor-mod|
|00000570| 65 2d 6d 61 70 20 6d 61 | 6b 65 2d 6b 65 79 6d 61 |e-map ma|ke-keyma|
|00000580| 70 20 6d 61 70 20 73 65 | 74 2d 6b 65 79 6d 61 70 |p map se|t-keymap|
|00000590| 2d 6e 61 6d 65 20 73 75 | 70 70 72 65 73 73 2d 6b |-name su|ppress-k|
|000005a0| 65 79 6d 61 70 20 64 65 | 66 69 6e 65 2d 6b 65 79 |eymap de|fine-key|
|000005b0| 20 22 2d 22 20 6e 65 67 | 61 74 69 76 65 2d 61 72 | "-" neg|ative-ar|
|000005c0| 67 75 6d 65 6e 74 20 22 | 20 22 20 73 63 72 6f 6c |gument "| " scrol|
|000005d0| 6c 2d 75 70 20 22 66 22 | 20 22 62 22 20 73 63 72 |l-up "f"| "b" scr|
|000005e0| 6f 6c 6c 2d 64 6f 77 6e | 20 62 61 63 6b 73 70 61 |oll-down| backspa|
|000005f0| 63 65 20 64 65 6c 65 74 | 65 20 22 0d 22 20 76 69 |ce delet|e "." vi|
|00000600| 65 77 2d 73 63 72 6f 6c | 6c 2d 6c 69 6e 65 73 2d |ew-scrol|l-lines-|
|00000610| 75 70 20 22 5c 6e 22 20 | 22 65 22 20 22 6a 22 20 |up "\n" |"e" "j" |
|00000620| 22 79 22 20 76 69 65 77 | 2d 73 63 72 6f 6c 6c 2d |"y" view|-scroll-|
|00000630| 6c 69 6e 65 73 2d 64 6f | 77 6e 20 22 6b 22 20 22 |lines-do|wn "k" "|
|00000640| 64 22 20 76 69 65 77 2d | 73 63 72 6f 6c 6c 2d 73 |d" view-|scroll-s|
|00000650| 6f 6d 65 2d 6c 69 6e 65 | 73 2d 75 70 20 22 75 22 |ome-line|s-up "u"|
|00000660| 20 76 69 65 77 2d 73 63 | 72 6f 6c 6c 2d 73 6f 6d | view-sc|roll-som|
|00000670| 65 2d 6c 69 6e 65 73 2d | 64 6f 77 6e 20 22 72 22 |e-lines-|down "r"|
|00000680| 20 72 65 63 65 6e 74 65 | 72 20 22 74 22 20 74 6f | recente|r "t" to|
|00000690| 67 67 6c 65 2d 74 72 75 | 6e 63 61 74 65 2d 6c 69 |ggle-tru|ncate-li|
|000006a0| 6e 65 73 20 22 4e 22 20 | 76 69 65 77 2d 62 75 66 |nes "N" |view-buf|
|000006b0| 66 65 72 20 22 45 22 20 | 76 69 65 77 2d 66 69 6c |fer "E" |view-fil|
|000006c0| 65 20 22 50 22 20 22 21 | 22 20 73 68 65 6c 6c 2d |e "P" "!|" shell-|
|000006d0| 63 6f 6d 6d 61 6e 64 20 | 22 7c 22 20 73 68 65 6c |command |"|" shel|
|000006e0| 6c 2d 63 6f 6d 6d 61 6e | 64 2d 6f 6e 2d 72 65 67 |l-comman|d-on-reg|
|000006f0| 69 6f 6e 20 22 3d 22 20 | 77 68 61 74 2d 6c 69 6e |ion "=" |what-lin|
|00000700| 65 20 22 3f 22 20 76 69 | 65 77 2d 73 65 61 72 63 |e "?" vi|ew-searc|
|00000710| 68 2d 62 61 63 6b 77 61 | 72 64 20 22 68 22 20 76 |h-backwa|rd "h" v|
|00000720| 69 65 77 2d 6d 6f 64 65 | 2d 64 65 73 63 72 69 62 |iew-mode|-describ|
|00000730| 65 20 22 73 22 20 76 69 | 65 77 2d 72 65 70 65 61 |e "s" vi|ew-repea|
|00000740| 74 2d 73 65 61 72 63 68 | 20 22 6e 22 20 22 2f 22 |t-search| "n" "/"|
|00000750| 20 76 69 65 77 2d 73 65 | 61 72 63 68 2d 66 6f 72 | view-se|arch-for|
|00000760| 77 61 72 64 20 22 5c 5c | 22 20 22 67 22 20 76 69 |ward "\\|" "g" vi|
|00000770| 65 77 2d 67 6f 74 6f 2d | 6c 69 6e 65 20 22 47 22 |ew-goto-|line "G"|
|00000780| 20 76 69 65 77 2d 6c 61 | 73 74 2d 77 69 6e 64 6f | view-la|st-windo|
|00000790| 77 66 75 6c 20 22 25 22 | 20 76 69 65 77 2d 67 6f |wful "%"| view-go|
|000007a0| 74 6f 2d 70 65 72 63 65 | 6e 74 20 22 70 22 20 22 |to-perce|nt "p" "|
|000007b0| 6d 22 20 70 6f 69 6e 74 | 2d 74 6f 2d 72 65 67 69 |m" point|-to-regi|
|000007c0| 73 74 65 72 20 22 27 22 | 20 72 65 67 69 73 74 65 |ster "'"| registe|
|000007d0| 72 2d 74 6f 2d 70 6f 69 | 6e 74 20 22 43 22 20 76 |r-to-poi|nt "C" v|
|000007e0| 69 65 77 2d 63 6c 65 61 | 6e 75 70 2d 62 61 63 6b |iew-clea|nup-back|
|000007f0| 73 70 61 63 65 73 20 22 | 03 03 22 20 76 69 65 77 |spaces "|.." view|
|00000800| 2d 71 75 69 74 20 22 18 | 11 22 20 76 69 65 77 2d |-quit ".|." view-|
|00000810| 71 75 69 74 2d 74 6f 67 | 67 6c 65 2d 72 6f 20 22 |quit-tog|gle-ro "|
|00000820| 71 22 20 63 75 72 72 65 | 6e 74 2d 6c 6f 61 64 2d |q" curre|nt-load-|
|00000830| 6c 69 73 74 20 61 64 64 | 2d 6d 69 6e 6f 72 2d 6d |list add|-minor-m|
|00000840| 6f 64 65 20 22 20 56 69 | 65 77 22 20 76 69 65 77 |ode " Vi|ew" view|
|00000850| 2d 6d 6f 64 65 2d 6d 61 | 70 20 63 6f 70 79 2d 6b |-mode-ma|p copy-k|
|00000860| 65 79 6d 61 70 5d 20 34 | 29 0a 23 40 37 33 20 46 |eymap] 4|).#@73 F|
|00000870| 69 6e 64 20 46 49 4c 45 | 2c 20 65 6e 74 65 72 20 |ind FILE|, enter |
|00000880| 76 69 65 77 20 6d 6f 64 | 65 2e 20 20 57 69 74 68 |view mod|e. With|
|00000890| 20 70 72 65 66 69 78 20 | 61 72 67 20 4f 54 48 45 | prefix |arg OTHE|
|000008a0| 52 2d 50 2c 20 75 73 65 | 20 6f 74 68 65 72 20 77 |R-P, use| other w|
|000008b0| 69 6e 64 6f 77 2e 1f 0a | 28 64 65 66 61 6c 69 61 |indow...|(defalia|
|000008c0| 73 20 27 76 69 65 77 2d | 66 69 6c 65 20 23 5b 28 |s 'view-|file #[(|
|000008d0| 66 69 6c 65 20 26 6f 70 | 74 69 6f 6e 61 6c 20 6f |file &op|tional o|
|000008e0| 74 68 65 72 2d 70 29 20 | 22 c0 09 21 70 1a 1b 0c |ther-p) |"..!p...|
|000008f0| ab 86 c5 09 21 88 aa 84 | c6 09 21 88 c7 0c 3f ad |....!...|..!...?.|
|00000900| 81 5c 6e 0b 3f ad 81 c8 | 5c 22 88 2a c9 87 22 20 |.\n.?...|\".*.." |
|00000910| 5b 67 65 74 2d 66 69 6c | 65 2d 62 75 66 66 65 72 |[get-fil|e-buffer|
|00000920| 20 66 69 6c 65 20 6f 62 | 75 66 20 6f 6c 64 2d 70 | file ob|uf old-p|
|00000930| 20 6f 74 68 65 72 2d 70 | 20 66 69 6e 64 2d 66 69 | other-p| find-fi|
|00000940| 6c 65 2d 6f 74 68 65 72 | 2d 77 69 6e 64 6f 77 20 |le-other|-window |
|00000950| 66 69 6e 64 2d 66 69 6c | 65 20 76 69 65 77 2d 6d |find-fil|e view-m|
|00000960| 6f 64 65 20 6b 69 6c 6c | 2d 62 75 66 66 65 72 20 |ode kill|-buffer |
|00000970| 6e 69 6c 5d 20 33 20 28 | 23 24 20 2e 20 32 31 35 |nil] 3 (|#$ . 215|
|00000980| 39 29 20 22 66 56 69 65 | 77 20 46 69 6c 65 3a 20 |9) "fVie|w File: |
|00000990| 5c 6e 50 22 5d 29 0a 23 | 40 36 38 20 53 77 69 74 |\nP"]).#|@68 Swit|
|000009a0| 63 68 20 74 6f 20 42 55 | 46 2c 20 65 6e 74 65 72 |ch to BU|F, enter|
|000009b0| 20 76 69 65 77 20 6d 6f | 64 65 2e 20 20 57 69 74 | view mo|de. Wit|
|000009c0| 68 20 70 72 65 66 69 78 | 20 61 72 67 20 75 73 65 |h prefix| arg use|
|000009d0| 20 6f 74 68 65 72 20 77 | 69 6e 64 6f 77 2e 1f 0a | other w|indow...|
|000009e0| 28 64 65 66 61 6c 69 61 | 73 20 27 76 69 65 77 2d |(defalia|s 'view-|
|000009f0| 62 75 66 66 65 72 20 23 | 5b 28 62 75 66 20 26 6f |buffer #|[(buf &o|
|00000a00| 70 74 69 6f 6e 61 6c 20 | 6f 74 68 65 72 2d 70 29 |ptional |other-p)|
|00000a10| 20 22 70 18 09 ab 86 c2 | 0b 21 88 aa 84 c4 0b 21 | "p.....|.!.....!|
|00000a20| 88 c5 09 3f ad 81 08 09 | 3f ad 81 c6 5c 22 29 87 |...?....|?...\").|
|00000a30| 22 20 5b 6f 62 75 66 20 | 6f 74 68 65 72 2d 70 20 |" [obuf |other-p |
|00000a40| 73 77 69 74 63 68 2d 74 | 6f 2d 62 75 66 66 65 72 |switch-t|o-buffer|
|00000a50| 2d 6f 74 68 65 72 2d 77 | 69 6e 64 6f 77 20 62 75 |-other-w|indow bu|
|00000a60| 66 20 73 77 69 74 63 68 | 2d 74 6f 2d 62 75 66 66 |f switch|-to-buff|
|00000a70| 65 72 20 76 69 65 77 2d | 6d 6f 64 65 20 62 75 72 |er view-|mode bur|
|00000a80| 79 2d 62 75 66 66 65 72 | 5d 20 33 20 28 23 24 20 |y-buffer|] 3 (#$ |
|00000a90| 2e 20 32 34 36 30 29 20 | 22 62 56 69 65 77 20 42 |. 2460) |"bView B|
|00000aa0| 75 66 66 65 72 3a 20 5c | 6e 50 22 5d 29 0a 23 40 |uffer: \|nP"]).#@|
|00000ab0| 34 39 20 46 69 6e 64 20 | 46 49 4c 45 20 69 6e 20 |49 Find |FILE in |
|00000ac0| 6f 74 68 65 72 20 77 69 | 6e 64 6f 77 2c 20 61 6e |other wi|ndow, an|
|00000ad0| 64 20 65 6e 74 65 72 20 | 76 69 65 77 20 6d 6f 64 |d enter |view mod|
|00000ae0| 65 2e 1f 0a 28 64 65 66 | 61 6c 69 61 73 20 27 76 |e...(def|alias 'v|
|00000af0| 69 65 77 2d 66 69 6c 65 | 2d 6f 74 68 65 72 2d 77 |iew-file|-other-w|
|00000b00| 69 6e 64 6f 77 20 23 5b | 28 66 69 6c 65 29 20 22 |indow #[|(file) "|
|00000b10| c0 09 c2 5c 22 87 22 20 | 5b 76 69 65 77 2d 66 69 |...\"." |[view-fi|
|00000b20| 6c 65 20 66 69 6c 65 20 | 74 5d 20 33 20 28 23 24 |le file |t] 3 (#$|
|00000b30| 20 2e 20 32 37 33 39 29 | 20 22 66 56 69 65 77 20 | . 2739)| "fView |
|00000b40| 46 69 6c 65 3a 20 22 5d | 29 0a 23 40 35 38 20 53 |File: "]|).#@58 S|
|00000b50| 77 69 74 63 68 20 74 6f | 20 42 55 46 46 45 52 20 |witch to| BUFFER |
|00000b60| 69 6e 20 61 6e 6f 74 68 | 65 72 20 77 69 6e 64 6f |in anoth|er windo|
|00000b70| 77 2c 20 61 6e 64 20 65 | 6e 74 65 72 20 76 69 65 |w, and e|nter vie|
|00000b80| 77 20 6d 6f 64 65 2e 1f | 0a 28 64 65 66 61 6c 69 |w mode..|.(defali|
|00000b90| 61 73 20 27 76 69 65 77 | 2d 62 75 66 66 65 72 2d |as 'view|-buffer-|
|00000ba0| 6f 74 68 65 72 2d 77 69 | 6e 64 6f 77 20 23 5b 28 |other-wi|ndow #[(|
|00000bb0| 62 75 66 66 65 72 29 20 | 22 c0 09 c2 5c 22 87 22 |buffer) |"...\"."|
|00000bc0| 20 5b 76 69 65 77 2d 62 | 75 66 66 65 72 20 62 75 | [view-b|uffer bu|
|00000bd0| 66 66 65 72 20 74 5d 20 | 33 20 28 23 24 20 2e 20 |ffer t] |3 (#$ . |
|00000be0| 32 38 39 35 29 20 22 62 | 56 69 65 77 20 42 75 66 |2895) "b|View Buf|
|00000bf0| 66 65 72 3a 20 22 5d 29 | 0a 28 64 65 66 61 6c 69 |fer: "])|.(defali|
|00000c00| 61 73 20 27 76 69 65 77 | 2d 62 72 69 65 66 2d 68 |as 'view|-brief-h|
|00000c10| 65 6c 70 20 23 5b 6e 69 | 6c 20 22 c0 c1 c2 21 21 |elp #[ni|l "...!!|
|00000c20| 87 22 20 5b 6d 65 73 73 | 61 67 65 20 73 75 62 73 |." [mess|age subs|
|00000c30| 74 69 74 75 74 65 2d 63 | 6f 6d 6d 61 6e 64 2d 6b |titute-c|ommand-k|
|00000c40| 65 79 73 20 22 5c 5c 3c | 76 69 65 77 2d 6d 69 6e |eys "\\<|view-min|
|00000c50| 6f 72 2d 6d 6f 64 65 2d | 6d 61 70 3e 5c 5c 5b 73 |or-mode-|map>\\[s|
|00000c60| 63 72 6f 6c 6c 2d 75 70 | 5d 20 3d 20 70 61 67 65 |croll-up|] = page|
|00000c70| 20 66 6f 72 77 61 72 64 | 3b 20 5c 5c 5b 73 63 72 | forward|; \\[scr|
|00000c80| 6f 6c 6c 2d 64 6f 77 6e | 5d 20 3d 20 70 61 67 65 |oll-down|] = page|
|00000c90| 20 62 61 63 6b 3b 20 5c | 5c 5b 76 69 65 77 2d 6d | back; \|\[view-m|
|00000ca0| 6f 64 65 2d 64 65 73 63 | 72 69 62 65 5d 20 3d 20 |ode-desc|ribe] = |
|00000cb0| 68 65 6c 70 3b 20 5c 5c | 5b 76 69 65 77 2d 71 75 |help; \\|[view-qu|
|00000cc0| 69 74 5d 20 3d 20 71 75 | 69 74 2e 22 5d 20 33 5d |it] = qu|it."] 3]|
|00000cd0| 29 0a 28 62 79 74 65 2d | 63 6f 64 65 20 22 c0 09 |).(byte-|code "..|
|00000ce0| 42 11 c2 09 42 11 c3 09 | 42 11 c4 09 42 11 c0 87 |B...B...|B...B...|
|00000cf0| 22 20 5b 76 69 65 77 2d | 65 78 69 74 2d 70 6f 73 |" [view-|exit-pos|
|00000d00| 69 74 69 6f 6e 20 63 75 | 72 72 65 6e 74 2d 6c 6f |ition cu|rrent-lo|
|00000d10| 61 64 2d 6c 69 73 74 20 | 76 69 65 77 2d 70 72 65 |ad-list |view-pre|
|00000d20| 76 2d 62 75 66 66 65 72 | 20 76 69 65 77 2d 65 78 |v-buffer| view-ex|
|00000d30| 69 74 2d 61 63 74 69 6f | 6e 20 76 69 65 77 2d 6f |it-actio|n view-o|
|00000d40| 6c 64 2d 62 75 66 66 65 | 72 2d 72 65 61 64 2d 6f |ld-buffe|r-read-o|
|00000d50| 6e 6c 79 5d 20 32 29 0a | 23 40 31 33 36 37 20 4d |nly] 2).|#@1367 M|
|00000d60| 69 6e 6f 72 20 6d 6f 64 | 65 20 66 6f 72 20 76 69 |inor mod|e for vi|
|00000d70| 65 77 69 6e 67 20 74 65 | 78 74 2c 20 77 69 74 68 |ewing te|xt, with|
|00000d80| 20 62 69 6e 64 69 6e 67 | 73 20 6c 69 6b 65 20 60 | binding|s like `|
|00000d90| 6c 65 73 73 27 2e 0a 43 | 6f 6d 6d 61 6e 64 73 20 |less'..C|ommands |
|00000da0| 61 72 65 3a 0a 5c 3c 76 | 69 65 77 2d 6d 69 6e 6f |are:.\<v|iew-mino|
|00000db0| 72 2d 6d 6f 64 65 2d 6d | 61 70 3e 0a 30 2e 2e 39 |r-mode-m|ap>.0..9|
|00000dc0| 09 70 72 65 66 69 78 20 | 61 72 67 73 0a 2d 09 70 |.prefix |args.-.p|
|00000dd0| 72 65 66 69 78 20 6d 69 | 6e 75 73 0a 5c 5b 73 63 |refix mi|nus.\[sc|
|00000de0| 72 6f 6c 6c 2d 75 70 5d | 09 70 61 67 65 20 66 6f |roll-up]|.page fo|
|00000df0| 72 77 61 72 64 0a 5c 5b | 73 63 72 6f 6c 6c 2d 64 |rward.\[|scroll-d|
|00000e00| 6f 77 6e 5d 09 70 61 67 | 65 20 62 61 63 6b 0a 5c |own].pag|e back.\|
|00000e10| 5b 76 69 65 77 2d 73 63 | 72 6f 6c 6c 2d 6c 69 6e |[view-sc|roll-lin|
|00000e20| 65 73 2d 75 70 5d 09 73 | 63 72 6f 6c 6c 20 70 72 |es-up].s|croll pr|
|00000e30| 65 66 69 78 2d 61 72 67 | 20 6c 69 6e 65 73 20 66 |efix-arg| lines f|
|00000e40| 6f 72 77 61 72 64 2c 20 | 64 65 66 61 75 6c 74 20 |orward, |default |
|00000e50| 31 2e 0a 5c 5b 76 69 65 | 77 2d 73 63 72 6f 6c 6c |1..\[vie|w-scroll|
|00000e60| 2d 6c 69 6e 65 73 2d 64 | 6f 77 6e 5d 09 73 63 72 |-lines-d|own].scr|
|00000e70| 6f 6c 6c 20 70 72 65 66 | 69 78 2d 61 72 67 20 6c |oll pref|ix-arg l|
|00000e80| 69 6e 65 73 20 62 61 63 | 6b 77 61 72 64 2c 20 64 |ines bac|kward, d|
|00000e90| 65 66 61 75 6c 74 20 31 | 2e 0a 5c 5b 76 69 65 77 |efault 1|..\[view|
|00000ea0| 2d 73 63 72 6f 6c 6c 2d | 73 6f 6d 65 2d 6c 69 6e |-scroll-|some-lin|
|00000eb0| 65 73 2d 64 6f 77 6e 5d | 09 73 63 72 6f 6c 6c 20 |es-down]|.scroll |
|00000ec0| 70 72 65 66 69 78 2d 61 | 72 67 20 6c 69 6e 65 73 |prefix-a|rg lines|
|00000ed0| 20 62 61 63 6b 77 61 72 | 64 2c 20 64 65 66 61 75 | backwar|d, defau|
|00000ee0| 6c 74 20 31 30 2e 0a 5c | 5b 76 69 65 77 2d 73 63 |lt 10..\|[view-sc|
|00000ef0| 72 6f 6c 6c 2d 73 6f 6d | 65 2d 6c 69 6e 65 73 2d |roll-som|e-lines-|
|00000f00| 75 70 5d 09 73 63 72 6f | 6c 6c 20 70 72 65 66 69 |up].scro|ll prefi|
|00000f10| 78 2d 61 72 67 20 6c 69 | 6e 65 73 20 66 6f 72 77 |x-arg li|nes forw|
|00000f20| 61 72 64 2c 20 64 65 66 | 61 75 6c 74 20 31 30 2e |ard, def|ault 10.|
|00000f30| 0a 5c 5b 77 68 61 74 2d | 6c 69 6e 65 5d 09 70 72 |.\[what-|line].pr|
|00000f40| 69 6e 74 20 6c 69 6e 65 | 20 6e 75 6d 62 65 72 0a |int line| number.|
|00000f50| 5c 5b 76 69 65 77 2d 6d | 6f 64 65 2d 64 65 73 63 |\[view-m|ode-desc|
|00000f60| 72 69 62 65 5d 09 70 72 | 69 6e 74 20 74 68 69 73 |ribe].pr|int this|
|00000f70| 20 68 65 6c 70 20 6d 65 | 73 73 61 67 65 0a 5c 5b | help me|ssage.\[|
|00000f80| 76 69 65 77 2d 73 65 61 | 72 63 68 2d 66 6f 72 77 |view-sea|rch-forw|
|00000f90| 61 72 64 5d 09 72 65 67 | 65 78 70 20 73 65 61 72 |ard].reg|exp sear|
|00000fa0| 63 68 2c 20 75 73 65 73 | 20 70 72 65 76 69 6f 75 |ch, uses| previou|
|00000fb0| 73 20 73 74 72 69 6e 67 | 20 69 66 20 79 6f 75 20 |s string| if you |
|00000fc0| 6a 75 73 74 20 68 69 74 | 20 52 45 54 0a 5c 5b 76 |just hit| RET.\[v|
|00000fd0| 69 65 77 2d 73 65 61 72 | 63 68 2d 62 61 63 6b 77 |iew-sear|ch-backw|
|00000fe0| 61 72 64 5d 09 61 73 20 | 61 62 6f 76 65 20 62 75 |ard].as |above bu|
|00000ff0| 74 20 73 65 61 72 63 68 | 65 73 20 62 61 63 6b 77 |t search|es backw|
|00001000| 61 72 64 0a 5c 5b 76 69 | 65 77 2d 72 65 70 65 61 |ard.\[vi|ew-repea|
|00001010| 74 2d 73 65 61 72 63 68 | 5d 09 72 65 70 65 61 74 |t-search|].repeat|
|00001020| 20 6c 61 73 74 20 73 65 | 61 72 63 68 0a 5c 5b 76 | last se|arch.\[v|
|00001030| 69 65 77 2d 67 6f 74 6f | 2d 6c 69 6e 65 5d 09 67 |iew-goto|-line].g|
|00001040| 6f 74 6f 20 6c 69 6e 65 | 20 70 72 65 66 69 78 2d |oto line| prefix-|
|00001050| 61 72 67 2c 20 64 65 66 | 61 75 6c 74 20 31 0a 5c |arg, def|ault 1.\|
|00001060| 5b 76 69 65 77 2d 6c 61 | 73 74 2d 77 69 6e 64 6f |[view-la|st-windo|
|00001070| 77 66 75 6c 5d 09 67 6f | 74 6f 20 6c 69 6e 65 20 |wful].go|to line |
|00001080| 70 72 65 66 69 78 2d 61 | 72 67 2c 20 64 65 66 61 |prefix-a|rg, defa|
|00001090| 75 6c 74 20 6c 61 73 74 | 20 6c 69 6e 65 0a 5c 5b |ult last| line.\[|
|000010a0| 76 69 65 77 2d 67 6f 74 | 6f 2d 70 65 72 63 65 6e |view-got|o-percen|
|000010b0| 74 5d 09 67 6f 74 6f 20 | 61 20 70 6f 73 69 74 69 |t].goto |a positi|
|000010c0| 6f 6e 20 62 79 20 70 65 | 72 63 65 6e 74 61 67 65 |on by pe|rcentage|
|000010d0| 0a 5c 5b 74 6f 67 67 6c | 65 2d 74 72 75 6e 63 61 |.\[toggl|e-trunca|
|000010e0| 74 65 2d 6c 69 6e 65 73 | 5d 09 74 6f 67 67 6c 65 |te-lines|].toggle|
|000010f0| 20 74 72 75 6e 63 61 74 | 65 2d 6c 69 6e 65 73 0a | truncat|e-lines.|
|00001100| 5c 5b 76 69 65 77 2d 66 | 69 6c 65 5d 09 76 69 65 |\[view-f|ile].vie|
|00001110| 77 20 61 6e 6f 74 68 65 | 72 20 66 69 6c 65 0a 5c |w anothe|r file.\|
|00001120| 5b 76 69 65 77 2d 62 75 | 66 66 65 72 5d 09 76 69 |[view-bu|ffer].vi|
|00001130| 65 77 20 61 6e 6f 74 68 | 65 72 20 62 75 66 66 65 |ew anoth|er buffe|
|00001140| 72 0a 5c 5b 76 69 65 77 | 2d 63 6c 65 61 6e 75 70 |r.\[view|-cleanup|
|00001150| 2d 62 61 63 6b 73 70 61 | 63 65 73 5d 09 63 6c 65 |-backspa|ces].cle|
|00001160| 61 6e 75 70 20 62 61 63 | 6b 73 70 61 63 65 20 63 |anup bac|kspace c|
|00001170| 6f 6e 73 74 72 75 63 74 | 69 6f 6e 73 0a 5c 5b 73 |onstruct|ions.\[s|
|00001180| 68 65 6c 6c 2d 63 6f 6d | 6d 61 6e 64 5d 09 65 78 |hell-com|mand].ex|
|00001190| 65 63 75 74 65 20 61 20 | 73 68 65 6c 6c 20 63 6f |ecute a |shell co|
|000011a0| 6d 6d 61 6e 64 0a 5c 5b | 73 68 65 6c 6c 2d 63 6f |mmand.\[|shell-co|
|000011b0| 6d 6d 61 6e 64 2d 6f 6e | 2d 72 65 67 69 6f 6e 5d |mmand-on|-region]|
|000011c0| 09 65 78 65 63 75 74 65 | 20 61 20 73 68 65 6c 6c |.execute| a shell|
|000011d0| 20 63 6f 6d 6d 61 6e 64 | 20 77 69 74 68 20 74 68 | command| with th|
|000011e0| 65 20 72 65 67 69 6f 6e | 20 61 73 20 69 6e 70 75 |e region| as inpu|
|000011f0| 74 0a 5c 5b 76 69 65 77 | 2d 71 75 69 74 5d 09 65 |t.\[view|-quit].e|
|00001200| 78 69 74 20 76 69 65 77 | 2d 6d 6f 64 65 2c 20 61 |xit view|-mode, a|
|00001210| 6e 64 20 62 75 72 79 20 | 74 68 65 20 63 75 72 72 |nd bury |the curr|
|00001220| 65 6e 74 20 62 75 66 66 | 65 72 2e 0a 0a 49 66 20 |ent buff|er...If |
|00001230| 69 6e 76 6f 6b 65 64 20 | 77 69 74 68 20 74 68 65 |invoked |with the|
|00001240| 20 6f 70 74 69 6f 6e 61 | 6c 20 28 70 72 65 66 69 | optiona|l (prefi|
|00001250| 78 29 20 61 72 67 20 6e | 6f 6e 2d 6e 69 6c 2c 20 |x) arg n|on-nil, |
|00001260| 76 69 65 77 2d 6d 6f 64 | 65 20 63 6c 65 61 6e 73 |view-mod|e cleans|
|00001270| 20 75 70 0a 62 61 63 6b | 73 70 61 63 65 20 63 6f | up.back|space co|
|00001280| 6e 73 74 72 75 63 74 69 | 6f 6e 73 2e 0a 0a 4d 6f |nstructi|ons...Mo|
|00001290| 72 65 20 70 72 65 63 69 | 73 65 6c 79 3a 0a 5c 7b |re preci|sely:.\{|
|000012a0| 76 69 65 77 2d 6d 69 6e | 6f 72 2d 6d 6f 64 65 2d |view-min|or-mode-|
|000012b0| 6d 61 70 7d 1f 0a 28 64 | 65 66 61 6c 69 61 73 20 |map}..(d|efalias |
|000012c0| 27 76 69 65 77 2d 6d 69 | 6e 6f 72 2d 6d 6f 64 65 |'view-mi|nor-mode|
|000012d0| 20 23 5b 28 26 6f 70 74 | 69 6f 6e 61 6c 20 70 72 | #[(&opt|ional pr|
|000012e0| 65 76 2d 62 75 66 66 65 | 72 20 65 78 69 74 2d 61 |ev-buffe|r exit-a|
|000012f0| 63 74 69 6f 6e 29 20 22 | c0 c1 21 88 c0 c2 21 60 |ction) "|..!...!`|
|00001300| 4c 88 c0 c3 21 0c 4c 88 | c0 c5 21 0e 06 4c 88 c0 |L...!.L.|..!..L..|
|00001310| c7 21 0e 08 4c 88 c9 c0 | ca 21 cb 5c 22 88 cc 16 |.!..L...|.!.\"...|
|00001320| 0d cc 16 08 ce 20 87 22 | 20 5b 6d 61 6b 65 2d 6c |..... ."| [make-l|
|00001330| 6f 63 61 6c 2d 76 61 72 | 69 61 62 6c 65 20 76 69 |ocal-var|iable vi|
|00001340| 65 77 2d 64 65 66 61 75 | 6c 74 2d 6c 69 6e 65 73 |ew-defau|lt-lines|
|00001350| 20 76 69 65 77 2d 65 78 | 69 74 2d 70 6f 73 69 74 | view-ex|it-posit|
|00001360| 69 6f 6e 20 76 69 65 77 | 2d 70 72 65 76 2d 62 75 |ion view|-prev-bu|
|00001370| 66 66 65 72 20 70 72 65 | 76 2d 62 75 66 66 65 72 |ffer pre|v-buffer|
|00001380| 20 76 69 65 77 2d 65 78 | 69 74 2d 61 63 74 69 6f | view-ex|it-actio|
|00001390| 6e 20 65 78 69 74 2d 61 | 63 74 69 6f 6e 20 76 69 |n exit-a|ction vi|
|000013a0| 65 77 2d 6f 6c 64 2d 62 | 75 66 66 65 72 2d 72 65 |ew-old-b|uffer-re|
|000013b0| 61 64 2d 6f 6e 6c 79 20 | 62 75 66 66 65 72 2d 72 |ad-only |buffer-r|
|000013c0| 65 61 64 2d 6f 6e 6c 79 | 20 61 64 64 2d 68 6f 6f |ead-only| add-hoo|
|000013d0| 6b 20 63 68 61 6e 67 65 | 2d 6d 61 6a 6f 72 2d 6d |k change|-major-m|
|000013e0| 6f 64 65 2d 68 6f 6f 6b | 20 76 69 65 77 2d 66 69 |ode-hook| view-fi|
|000013f0| 78 75 70 2d 72 65 61 64 | 2d 6f 6e 6c 79 20 74 20 |xup-read|-only t |
|00001400| 76 69 65 77 2d 6d 69 6e | 6f 72 2d 6d 6f 64 65 20 |view-min|or-mode |
|00001410| 76 69 65 77 2d 62 72 69 | 65 66 2d 68 65 6c 70 5d |view-bri|ef-help]|
|00001420| 20 33 20 28 23 24 20 2e | 20 33 34 32 33 29 20 6e | 3 (#$ .| 3423) n|
|00001430| 69 6c 5d 29 0a 23 40 31 | 37 31 20 56 69 65 77 20 |il]).#@1|71 View |
|00001440| 74 68 65 20 63 75 72 72 | 65 6e 74 20 62 75 66 66 |the curr|ent buff|
|00001450| 65 72 20 75 73 69 6e 67 | 20 76 69 65 77 2d 6d 69 |er using| view-mi|
|00001460| 6e 6f 72 2d 6d 6f 64 65 | 2e 20 20 54 68 69 73 20 |nor-mode|. This |
|00001470| 65 78 69 73 74 73 20 74 | 6f 20 62 65 20 39 39 2e |exists t|o be 99.|
|00001480| 39 25 0a 63 6f 6d 70 61 | 74 69 62 6c 65 20 77 69 |9%.compa|tible wi|
|00001490| 74 68 20 74 68 65 20 69 | 6d 70 6c 65 6d 65 6e 74 |th the i|mplement|
|000014a0| 61 74 69 6f 6e 73 20 6f | 66 20 60 76 69 65 77 2d |ations o|f `view-|
|000014b0| 6d 6f 64 65 27 20 69 6e | 20 76 69 65 77 2e 65 6c |mode' in| view.el|
|000014c0| 20 61 6e 64 20 6f 6c 64 | 65 72 0a 76 65 72 73 69 | and old|er.versi|
|000014d0| 6f 6e 73 20 6f 66 20 76 | 69 65 77 2d 6c 65 73 73 |ons of v|iew-less|
|000014e0| 2e 65 6c 2e 1f 0a 28 64 | 65 66 61 6c 69 61 73 20 |.el...(d|efalias |
|000014f0| 27 76 69 65 77 2d 6d 6f | 64 65 20 23 5b 28 26 6f |'view-mo|de #[(&o|
|00001500| 70 74 69 6f 6e 61 6c 20 | 70 72 65 76 2d 62 75 66 |ptional |prev-buf|
|00001510| 66 65 72 20 65 78 69 74 | 2d 61 63 74 69 6f 6e 20 |fer exit|-action |
|00001520| 63 6c 65 61 6e 2d 62 73 | 29 20 22 08 ab 83 c1 20 |clean-bs|) ".... |
|00001530| 88 c2 0b 0c 5c 22 87 22 | 20 5b 63 6c 65 61 6e 2d |....\"."| [clean-|
|00001540| 62 73 20 63 6c 65 61 6e | 75 70 2d 62 61 63 6b 73 |bs clean|up-backs|
|00001550| 70 61 63 65 73 20 76 69 | 65 77 2d 6d 69 6e 6f 72 |paces vi|ew-minor|
|00001560| 2d 6d 6f 64 65 20 70 72 | 65 76 2d 62 75 66 66 65 |-mode pr|ev-buffe|
|00001570| 72 20 65 78 69 74 2d 61 | 63 74 69 6f 6e 5d 20 33 |r exit-a|ction] 3|
|00001580| 20 28 23 24 20 2e 20 35 | 31 37 39 29 20 28 6c 69 | (#$ . 5|179) (li|
|00001590| 73 74 20 6e 69 6c 20 27 | 62 75 72 79 2d 62 75 66 |st nil '|bury-buf|
|000015a0| 66 65 72 20 63 75 72 72 | 65 6e 74 2d 70 72 65 66 |fer curr|ent-pref|
|000015b0| 69 78 2d 61 72 67 29 5d | 29 0a 23 40 31 37 37 20 |ix-arg)]|).#@177 |
|000015c0| 56 69 65 77 20 74 68 65 | 20 63 75 72 72 65 6e 74 |View the| current|
|000015d0| 20 62 75 66 66 65 72 20 | 75 73 69 6e 67 20 76 69 | buffer |using vi|
|000015e0| 65 77 2d 6d 6f 64 65 2c | 20 61 73 20 61 20 6d 61 |ew-mode,| as a ma|
|000015f0| 6a 6f 72 20 6d 6f 64 65 | 2e 0a 54 68 69 73 20 66 |jor mode|..This f|
|00001600| 75 6e 63 74 69 6f 6e 20 | 68 61 73 20 61 20 6e 6f |unction |has a no|
|00001610| 6e 73 74 61 6e 64 61 72 | 64 20 6e 61 6d 65 20 62 |nstandar|d name b|
|00001620| 65 63 61 75 73 65 20 60 | 76 69 65 77 2d 6d 6f 64 |ecause `|view-mod|
|00001630| 65 27 20 69 73 20 77 72 | 6f 6e 67 6c 79 0a 6e 61 |e' is wr|ongly.na|
|00001640| 6d 65 64 20 62 75 74 20 | 69 73 20 6c 69 6b 65 20 |med but |is like |
|00001650| 74 68 69 73 20 66 6f 72 | 20 63 6f 6d 70 61 74 69 |this for| compati|
|00001660| 62 69 6c 69 74 79 20 72 | 65 61 73 6f 6e 73 2e 1f |bility r|easons..|
|00001670| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 76 69 65 77 |.(defali|as 'view|
|00001680| 2d 6d 61 6a 6f 72 2d 6d | 6f 64 65 20 23 5b 28 26 |-major-m|ode #[(&|
|00001690| 6f 70 74 69 6f 6e 61 6c | 20 70 72 65 76 2d 62 75 |optional| prev-bu|
|000016a0| 66 66 65 72 20 65 78 69 | 74 2d 61 63 74 69 6f 6e |ffer exi|t-action|
|000016b0| 20 63 6c 65 61 6e 2d 62 | 73 29 20 22 c0 20 88 c1 | clean-b|s) ". ..|
|000016c0| 5c 6e 21 88 c3 14 c5 c6 | 21 60 4c 88 c5 c7 21 0e |\n!.....|!`L...!.|
|000016d0| 08 4c 88 c5 c9 21 0e 5c | 6e 4c 88 c5 cb 21 0e 0c |.L...!.\|nL...!..|
|000016e0| 4c 88 c5 cd 21 ce 4c 88 | ce 16 0c 0e 0f ab 83 d0 |L...!.L.|........|
|000016f0| 20 88 d1 d2 21 87 22 20 | 5b 6b 69 6c 6c 2d 61 6c | ...!." |[kill-al|
|00001700| 6c 2d 6c 6f 63 61 6c 2d | 76 61 72 69 61 62 6c 65 |l-local-|variable|
|00001710| 73 20 75 73 65 2d 6c 6f | 63 61 6c 2d 6d 61 70 20 |s use-lo|cal-map |
|00001720| 76 69 65 77 2d 6d 6f 64 | 65 2d 6d 61 70 20 76 69 |view-mod|e-map vi|
|00001730| 65 77 2d 6d 6f 64 65 20 | 6d 61 6a 6f 72 2d 6d 6f |ew-mode |major-mo|
|00001740| 64 65 20 6d 61 6b 65 2d | 6c 6f 63 61 6c 2d 76 61 |de make-|local-va|
|00001750| 72 69 61 62 6c 65 20 76 | 69 65 77 2d 65 78 69 74 |riable v|iew-exit|
|00001760| 2d 70 6f 73 69 74 69 6f | 6e 20 76 69 65 77 2d 70 |-positio|n view-p|
|00001770| 72 65 76 2d 62 75 66 66 | 65 72 20 70 72 65 76 2d |rev-buff|er prev-|
|00001780| 62 75 66 66 65 72 20 76 | 69 65 77 2d 65 78 69 74 |buffer v|iew-exit|
|00001790| 2d 61 63 74 69 6f 6e 20 | 65 78 69 74 2d 61 63 74 |-action |exit-act|
|000017a0| 69 6f 6e 20 76 69 65 77 | 2d 6f 6c 64 2d 62 75 66 |ion view|-old-buf|
|000017b0| 66 65 72 2d 72 65 61 64 | 2d 6f 6e 6c 79 20 62 75 |fer-read|-only bu|
|000017c0| 66 66 65 72 2d 72 65 61 | 64 2d 6f 6e 6c 79 20 76 |ffer-rea|d-only v|
|000017d0| 69 65 77 2d 6d 61 6a 6f | 72 2d 6d 6f 64 65 20 74 |iew-majo|r-mode t|
|000017e0| 20 63 6c 65 61 6e 2d 62 | 73 20 63 6c 65 61 6e 75 | clean-b|s cleanu|
|000017f0| 70 2d 62 61 63 6b 73 70 | 61 63 65 73 20 72 75 6e |p-backsp|aces run|
|00001800| 2d 68 6f 6f 6b 73 20 76 | 69 65 77 2d 6d 6f 64 65 |-hooks v|iew-mode|
|00001810| 2d 68 6f 6f 6b 5d 20 32 | 20 28 23 24 20 2e 20 35 |-hook] 2| (#$ . 5|
|00001820| 35 36 38 29 20 28 6c 69 | 73 74 20 6e 69 6c 20 27 |568) (li|st nil '|
|00001830| 62 75 72 79 2d 62 75 66 | 66 65 72 20 63 75 72 72 |bury-buf|fer curr|
|00001840| 65 6e 74 2d 70 72 65 66 | 69 78 2d 61 72 67 29 5d |ent-pref|ix-arg)]|
|00001850| 29 0a 23 40 31 31 36 20 | 49 66 20 74 68 65 20 66 |).#@116 |If the f|
|00001860| 69 6c 65 20 6f 66 20 74 | 68 65 20 63 75 72 72 65 |ile of t|he curre|
|00001870| 6e 74 20 62 75 66 66 65 | 72 20 69 73 20 6e 6f 74 |nt buffe|r is not|
|00001880| 20 77 72 69 74 61 62 6c | 65 2c 20 63 61 6c 6c 20 | writabl|e, call |
|00001890| 76 69 65 77 2d 6d 6f 64 | 65 2e 0a 54 68 69 73 20 |view-mod|e..This |
|000018a0| 69 73 20 6d 65 61 6e 74 | 20 74 6f 20 62 65 20 61 |is meant| to be a|
|000018b0| 64 64 65 64 20 74 6f 20 | 60 66 69 6e 64 2d 66 69 |dded to |`find-fi|
|000018c0| 6c 65 2d 68 6f 6f 6b 73 | 27 2e 1f 0a 28 64 65 66 |le-hooks|'...(def|
|000018d0| 61 6c 69 61 73 20 27 61 | 75 74 6f 2d 76 69 65 77 |alias 'a|uto-view|
|000018e0| 2d 6d 6f 64 65 20 23 5b | 6e 69 6c 20 22 c0 09 21 |-mode #[|nil "..!|
|000018f0| ae 82 c2 20 87 22 20 5b | 66 69 6c 65 2d 77 72 69 |... ." [|file-wri|
|00001900| 74 61 62 6c 65 2d 70 20 | 62 75 66 66 65 72 2d 66 |table-p |buffer-f|
|00001910| 69 6c 65 2d 6e 61 6d 65 | 20 76 69 65 77 2d 6d 69 |ile-name| view-mi|
|00001920| 6e 6f 72 2d 6d 6f 64 65 | 5d 20 32 20 28 23 24 20 |nor-mode|] 2 (#$ |
|00001930| 2e 20 36 32 33 32 29 5d | 29 0a 28 64 65 66 61 6c |. 6232)]|).(defal|
|00001940| 69 61 73 20 27 76 69 65 | 77 2d 66 69 78 75 70 2d |ias 'vie|w-fixup-|
|00001950| 72 65 61 64 2d 6f 6e 6c | 79 20 23 5b 6e 69 6c 20 |read-onl|y #[nil |
|00001960| 22 c0 c1 21 ad 85 09 12 | c3 c1 21 87 22 20 5b 62 |"..!....|..!." [b|
|00001970| 6f 75 6e 64 70 20 76 69 | 65 77 2d 6f 6c 64 2d 62 |oundp vi|ew-old-b|
|00001980| 75 66 66 65 72 2d 72 65 | 61 64 2d 6f 6e 6c 79 20 |uffer-re|ad-only |
|00001990| 62 75 66 66 65 72 2d 72 | 65 61 64 2d 6f 6e 6c 79 |buffer-r|ead-only|
|000019a0| 20 6b 69 6c 6c 2d 6c 6f | 63 61 6c 2d 76 61 72 69 | kill-lo|cal-vari|
|000019b0| 61 62 6c 65 5d 20 32 5d | 29 0a 23 40 31 39 35 20 |able] 2]|).#@195 |
|000019c0| 45 78 69 74 20 76 69 65 | 77 20 6d 6f 64 65 20 61 |Exit vie|w mode a|
|000019d0| 6e 64 20 65 78 65 63 75 | 74 65 20 74 68 65 20 67 |nd execu|te the g|
|000019e0| 6c 6f 62 61 6c 20 62 69 | 6e 64 69 6e 67 20 6f 66 |lobal bi|nding of|
|000019f0| 20 74 68 65 20 6b 65 79 | 20 74 68 61 74 20 69 6e | the key| that in|
|00001a00| 76 6f 6b 65 64 20 74 68 | 69 73 0a 63 6f 6d 6d 61 |voked th|is.comma|
|00001a10| 6e 64 2e 20 20 4e 6f 72 | 6d 61 6c 6c 79 2c 20 74 |nd. Nor|mally, t|
|00001a20| 68 69 73 20 77 69 6c 6c | 20 74 6f 67 67 6c 65 20 |his will| toggle |
|00001a30| 74 68 65 20 73 74 61 74 | 65 20 6f 66 20 60 62 75 |the stat|e of `bu|
|00001a40| 66 66 65 72 2d 72 65 61 | 64 2d 6f 6e 6c 79 27 2c |ffer-rea|d-only',|
|00001a50| 20 70 65 72 68 61 70 73 | 0a 69 6e 76 6f 6b 69 6e | perhaps|.invokin|
|00001a60| 67 20 73 6f 6d 65 20 76 | 65 72 73 69 6f 6e 2d 63 |g some v|ersion-c|
|00001a70| 6f 6e 74 72 6f 6c 20 6d | 65 63 68 61 6e 69 73 6d |ontrol m|echanism|
|00001a80| 2e 1f 0a 28 64 65 66 61 | 6c 69 61 73 20 27 76 69 |...(defa|lias 'vi|
|00001a90| 65 77 2d 71 75 69 74 2d | 74 6f 67 67 6c 65 2d 72 |ew-quit-|toggle-r|
|00001aa0| 6f 20 23 5b 6e 69 6c 20 | 22 c0 11 5c 6e 1a c3 c4 |o #[nil |"..\n...|
|00001ab0| 21 88 29 c5 c6 c7 20 21 | 21 87 22 20 5b 6e 69 6c |!.)... !|!." [nil|
|00001ac0| 20 76 69 65 77 2d 65 78 | 69 74 2d 70 6f 73 69 74 | view-ex|it-posit|
|00001ad0| 69 6f 6e 20 62 75 66 66 | 65 72 2d 72 65 61 64 2d |ion buff|er-read-|
|00001ae0| 6f 6e 6c 79 20 76 69 65 | 77 2d 71 75 69 74 20 74 |only vie|w-quit t|
|00001af0| 20 63 61 6c 6c 2d 69 6e | 74 65 72 61 63 74 69 76 | call-in|teractiv|
|00001b00| 65 6c 79 20 6b 65 79 2d | 62 69 6e 64 69 6e 67 20 |ely key-|binding |
|00001b10| 74 68 69 73 2d 63 6f 6d | 6d 61 6e 64 2d 6b 65 79 |this-com|mand-key|
|00001b20| 73 5d 20 33 20 28 23 24 | 20 2e 20 36 35 39 32 29 |s] 3 (#$| . 6592)|
|00001b30| 20 6e 69 6c 5d 29 0a 23 | 40 37 34 20 45 78 69 74 | nil]).#|@74 Exit|
|00001b40| 20 76 69 65 77 20 6d 6f | 64 65 2e 20 20 57 69 74 | view mo|de. Wit|
|00001b50| 68 20 70 72 65 66 69 78 | 20 61 72 67 75 6d 65 6e |h prefix| argumen|
|00001b60| 74 2c 20 6b 65 65 70 20 | 74 68 65 20 63 75 72 72 |t, keep |the curr|
|00001b70| 65 6e 74 20 62 75 66 66 | 65 72 20 73 65 6c 65 63 |ent buff|er selec|
|00001b80| 74 65 64 2e 1f 0a 28 64 | 65 66 61 6c 69 61 73 20 |ted...(d|efalias |
|00001b90| 27 76 69 65 77 2d 71 75 | 69 74 20 23 5b 28 26 6f |'view-qu|it #[(&o|
|00001ba0| 70 74 69 6f 6e 61 6c 20 | 6e 6f 2d 65 78 69 74 2d |ptional |no-exit-|
|00001bb0| 61 63 74 69 6f 6e 29 20 | 22 c0 20 88 c1 12 0b ab |action) |". .....|
|00001bc0| 83 0b 62 88 c4 c5 21 ab | 86 0d ab 83 c6 20 87 0e |..b...!.|..... ..|
|00001bd0| 07 0e 08 1e 09 1e 5c 6e | 0e 0b 3f ad 91 0e 09 ab |......\n|..?.....|
|00001be0| 85 0e 09 70 21 88 0e 5c | 6e ad 84 cc 0e 5c 6e 21 |...p!..\|n....\n!|
|00001bf0| 2a 87 22 20 5b 76 69 65 | 77 2d 66 69 78 75 70 2d |*." [vie|w-fixup-|
|00001c00| 72 65 61 64 2d 6f 6e 6c | 79 20 6e 69 6c 20 76 69 |read-onl|y nil vi|
|00001c10| 65 77 2d 6d 69 6e 6f 72 | 2d 6d 6f 64 65 20 76 69 |ew-minor|-mode vi|
|00001c20| 65 77 2d 65 78 69 74 2d | 70 6f 73 69 74 69 6f 6e |ew-exit-|position|
|00001c30| 20 62 6f 75 6e 64 70 20 | 76 69 65 77 2d 6d 61 6a | boundp |view-maj|
|00001c40| 6f 72 2d 6d 6f 64 65 20 | 66 75 6e 64 61 6d 65 6e |or-mode |fundamen|
|00001c50| 74 61 6c 2d 6d 6f 64 65 | 20 76 69 65 77 2d 70 72 |tal-mode| view-pr|
|00001c60| 65 76 2d 62 75 66 66 65 | 72 20 76 69 65 77 2d 65 |ev-buffe|r view-e|
|00001c70| 78 69 74 2d 61 63 74 69 | 6f 6e 20 65 78 69 74 61 |xit-acti|on exita|
|00001c80| 63 74 20 70 62 75 66 20 | 6e 6f 2d 65 78 69 74 2d |ct pbuf |no-exit-|
|00001c90| 61 63 74 69 6f 6e 20 73 | 77 69 74 63 68 2d 74 6f |action s|witch-to|
|00001ca0| 2d 62 75 66 66 65 72 5d | 20 32 20 28 23 24 20 2e |-buffer]| 2 (#$ .|
|00001cb0| 20 36 39 37 32 29 20 22 | 50 22 5d 29 0a 23 40 32 | 6972) "|P"]).#@2|
|00001cc0| 30 35 20 43 6c 65 61 6e | 75 70 20 62 61 63 6b 73 |05 Clean|up backs|
|00001cd0| 70 61 63 65 20 63 6f 6e | 73 74 72 75 63 74 69 6f |pace con|structio|
|00001ce0| 6e 73 2e 0a 5f 5e 48 20 | 61 6e 64 20 5e 48 5f 20 |ns.._^H |and ^H_ |
|00001cf0| 73 65 71 75 65 6e 63 65 | 73 20 61 72 65 20 64 65 |sequence|s are de|
|00001d00| 6c 65 74 65 64 2e 20 20 | 78 5e 48 78 20 73 65 71 |leted. |x^Hx seq|
|00001d10| 75 65 6e 63 65 73 20 61 | 72 65 20 74 75 72 6e 65 |uences a|re turne|
|00001d20| 64 20 69 6e 74 6f 20 78 | 20 66 6f 72 20 61 6c 6c |d into x| for all|
|00001d30| 0a 63 68 61 72 61 63 74 | 65 72 73 20 78 2e 20 20 |.charact|ers x. |
|00001d40| 5e 5e 48 7c 20 61 6e 64 | 20 7c 5e 48 5e 20 73 65 |^^H| and| |^H^ se|
|00001d50| 71 75 65 6e 63 65 73 20 | 61 72 65 20 74 75 72 6e |quences |are turn|
|00001d60| 65 64 20 69 6e 74 6f 20 | 5e 2e 20 20 2b 5e 48 6f |ed into |^. +^Ho|
|00001d70| 20 61 6e 64 20 6f 5e 48 | 2b 20 61 72 65 0a 74 75 | and o^H|+ are.tu|
|00001d80| 72 6e 65 64 20 69 6e 74 | 6f 20 28 2b 29 2e 1f 0a |rned int|o (+)...|
|00001d90| 28 64 65 66 61 6c 69 61 | 73 20 27 63 6c 65 61 6e |(defalia|s 'clean|
|00001da0| 75 70 2d 62 61 63 6b 73 | 70 61 63 65 73 20 23 5b |up-backs|paces #[|
|00001db0| 6e 69 6c 20 22 8a 65 62 | 88 67 c0 55 ab 86 c1 c2 |nil ".eb|.g.U....|
|00001dc0| 21 88 aa 75 c3 c4 c5 c6 | 23 ad bd c7 75 88 c8 c9 |!..u....|#...u...|
|00001dd0| 21 ab 86 c1 ca 21 88 aa | 6b c8 cb 21 ab 89 c2 75 |!....!..|k..!...u|
|00001de0| 88 c1 ca 21 88 aa 5d c8 | cc 21 ab 89 c1 cd 21 88 |...!..].|.!....!.|
|00001df0| ce 63 88 aa 4f c8 cf 21 | ab 89 c1 cd 21 88 d0 63 |.c..O..!|....!..c|
|00001e00| 88 aa 41 ca 75 88 aa 3c | 29 87 22 20 5b 3f 5c 5e |..A.u..<|)." [?\^|
|00001e10| 48 20 64 65 6c 65 74 65 | 2d 63 68 61 72 20 31 20 |H delete|-char 1 |
|00001e20| 73 65 61 72 63 68 2d 66 | 6f 72 77 61 72 64 20 22 |search-f|orward "|
|00001e30| 08 22 20 6e 69 6c 20 74 | 20 2d 32 20 6c 6f 6f 6b |." nil t| -2 look|
|00001e40| 69 6e 67 2d 61 74 20 22 | 5f 08 5c 5c 7c 5c 5c 28 |ing-at "|_.\\|\\(|
|00001e50| 2e 5c 5c 29 08 5c 5c 31 | 5c 5c 7c 7c 08 5c 5c 5e |.\\).\\1|\\||.\\^|
|00001e60| 22 20 32 20 22 2e 08 5f | 5c 5c 7c 5c 5c 5e 08 7c |" 2 ".._|\\|\\^.||
|00001e70| 22 20 22 2b 08 6f 5c 5c | 7c 6f 08 2b 22 20 33 20 |" "+.o\\||o.+" 3 |
|00001e80| 22 28 2b 29 22 20 22 7c | 08 2d 22 20 22 2a 22 5d |"(+)" "||.-" "*"]|
|00001e90| 20 34 20 28 23 24 20 2e | 20 37 33 36 33 29 20 6e | 4 (#$ .| 7363) n|
|00001ea0| 69 6c 5d 29 0a 23 40 31 | 34 30 20 43 6c 65 61 6e |il]).#@1|40 Clean|
|00001eb0| 75 70 20 62 61 63 6b 73 | 70 61 63 65 73 20 61 6e |up backs|paces an|
|00001ec0| 64 20 69 66 20 62 75 66 | 66 65 72 20 69 73 20 63 |d if buf|fer is c|
|00001ed0| 75 72 72 65 6e 74 6c 79 | 20 75 6e 6d 6f 64 69 66 |urrently| unmodif|
|00001ee0| 69 65 64 2c 20 64 6f 6e | 27 74 20 66 6c 61 67 20 |ied, don|'t flag |
|00001ef0| 69 74 0a 61 73 20 61 20 | 6d 6f 64 69 66 69 65 64 |it.as a |modified|
|00001f00| 20 62 75 66 66 65 72 2e | 20 20 54 68 69 73 20 77 | buffer.| This w|
|00001f10| 6f 72 6b 73 20 65 76 65 | 6e 20 69 66 20 74 68 65 |orks eve|n if the|
|00001f20| 20 62 75 66 66 65 72 20 | 69 73 20 72 65 61 64 2d | buffer |is read-|
|00001f30| 6f 6e 6c 79 2e 1f 0a 28 | 64 65 66 61 6c 69 61 73 |only...(|defalias|
|00001f40| 20 27 76 69 65 77 2d 63 | 6c 65 61 6e 75 70 2d 62 | 'view-c|leanup-b|
|00001f50| 61 63 6b 73 70 61 63 65 | 73 20 23 5b 6e 69 6c 20 |ackspace|s #[nil |
|00001f60| 22 c0 c1 20 1a 1b c4 20 | 88 c5 5c 6e 21 2a 87 22 |".. ... |..\n!*."|
|00001f70| 20 5b 6e 69 6c 20 62 75 | 66 66 65 72 2d 6d 6f 64 | [nil bu|ffer-mod|
|00001f80| 69 66 69 65 64 2d 70 20 | 62 75 66 2d 6d 6f 64 20 |ified-p |buf-mod |
|00001f90| 62 75 66 66 65 72 2d 72 | 65 61 64 2d 6f 6e 6c 79 |buffer-r|ead-only|
|00001fa0| 20 63 6c 65 61 6e 75 70 | 2d 62 61 63 6b 73 70 61 | cleanup|-backspa|
|00001fb0| 63 65 73 20 73 65 74 2d | 62 75 66 66 65 72 2d 6d |ces set-|buffer-m|
|00001fc0| 6f 64 69 66 69 65 64 2d | 70 5d 20 32 20 28 23 24 |odified-|p] 2 (#$|
|00001fd0| 20 2e 20 37 38 35 31 29 | 20 6e 69 6c 5d 29 0a 23 | . 7851)| nil]).#|
|00001fe0| 40 38 34 20 54 6f 67 67 | 6c 65 73 20 74 68 65 20 |@84 Togg|les the |
|00001ff0| 76 61 6c 75 65 73 20 6f | 66 20 74 72 75 6e 63 61 |values o|f trunca|
|00002000| 74 65 2d 6c 69 6e 65 73 | 2e 0a 50 6f 73 69 74 69 |te-lines|..Positi|
|00002010| 76 65 20 70 72 65 66 69 | 78 20 61 72 67 20 73 65 |ve prefi|x arg se|
|00002020| 74 73 2c 20 6e 65 67 61 | 74 69 76 65 20 64 69 73 |ts, nega|tive dis|
|00002030| 61 62 6c 65 73 2e 1f 0a | 28 64 65 66 61 6c 69 61 |ables...|(defalia|
|00002040| 73 20 27 74 6f 67 67 6c | 65 2d 74 72 75 6e 63 61 |s 'toggl|e-trunca|
|00002050| 74 65 2d 6c 69 6e 65 73 | 20 23 5b 28 26 6f 70 74 |te-lines| #[(&opt|
|00002060| 69 6f 6e 61 6c 20 70 29 | 20 22 08 ab 87 c1 08 21 |ional p)| ".....!|
|00002070| c2 56 aa 82 0b 3f 13 c4 | 20 87 22 20 5b 70 20 70 |.V...?..| ." [p p|
|00002080| 72 65 66 69 78 2d 6e 75 | 6d 65 72 69 63 2d 76 61 |refix-nu|meric-va|
|00002090| 6c 75 65 20 30 20 74 72 | 75 6e 63 61 74 65 2d 6c |lue 0 tr|uncate-l|
|000020a0| 69 6e 65 73 20 72 65 63 | 65 6e 74 65 72 5d 20 32 |ines rec|enter] 2|
|000020b0| 20 28 23 24 20 2e 20 38 | 31 36 34 29 20 22 50 22 | (#$ . 8|164) "P"|
|000020c0| 5d 29 0a 23 40 34 30 20 | 53 63 72 6f 6c 6c 20 75 |]).#@40 |Scroll u|
|000020d0| 70 20 70 72 65 66 69 78 | 2d 61 72 67 20 6c 69 6e |p prefix|-arg lin|
|000020e0| 65 73 2c 20 64 65 66 61 | 75 6c 74 20 31 2e 1f 0a |es, defa|ult 1...|
|000020f0| 28 64 65 66 61 6c 69 61 | 73 20 27 76 69 65 77 2d |(defalia|s 'view-|
|00002100| 73 63 72 6f 6c 6c 2d 6c | 69 6e 65 73 2d 75 70 20 |scroll-l|ines-up |
|00002110| 23 5b 28 70 29 20 22 c0 | 09 21 87 22 20 5b 73 63 |#[(p) ".|.!." [sc|
|00002120| 72 6f 6c 6c 2d 75 70 20 | 70 5d 20 32 20 28 23 24 |roll-up |p] 2 (#$|
|00002130| 20 2e 20 38 33 39 32 29 | 20 22 70 22 5d 29 0a 23 | . 8392)| "p"]).#|
|00002140| 40 34 32 20 53 63 72 6f | 6c 6c 20 64 6f 77 6e 20 |@42 Scro|ll down |
|00002150| 70 72 65 66 69 78 2d 61 | 72 67 20 6c 69 6e 65 73 |prefix-a|rg lines|
|00002160| 2c 20 64 65 66 61 75 6c | 74 20 31 2e 1f 0a 28 64 |, defaul|t 1...(d|
|00002170| 65 66 61 6c 69 61 73 20 | 27 76 69 65 77 2d 73 63 |efalias |'view-sc|
|00002180| 72 6f 6c 6c 2d 6c 69 6e | 65 73 2d 64 6f 77 6e 20 |roll-lin|es-down |
|00002190| 23 5b 28 70 29 20 22 c0 | 09 5b 21 87 22 20 5b 73 |#[(p) ".|.[!." [s|
|000021a0| 63 72 6f 6c 6c 2d 75 70 | 20 70 5d 20 32 20 28 23 |croll-up| p] 2 (#|
|000021b0| 24 20 2e 20 38 35 31 36 | 29 20 22 70 22 5d 29 0a |$ . 8516|) "p"]).|
|000021c0| 23 40 36 31 20 53 63 72 | 6f 6c 6c 20 64 6f 77 6e |#@61 Scr|oll down|
|000021d0| 20 70 72 65 66 69 78 2d | 61 72 67 20 6c 69 6e 65 | prefix-|arg line|
|000021e0| 73 2c 20 64 65 66 61 75 | 6c 74 20 31 30 2c 20 6f |s, defau|lt 10, o|
|000021f0| 72 20 6c 61 73 74 20 61 | 72 67 75 6d 65 6e 74 2e |r last a|rgument.|
|00002200| 1f 0a 28 64 65 66 61 6c | 69 61 73 20 27 76 69 65 |..(defal|ias 'vie|
|00002210| 77 2d 73 63 72 6f 6c 6c | 2d 73 6f 6d 65 2d 6c 69 |w-scroll|-some-li|
|00002220| 6e 65 73 2d 64 6f 77 6e | 20 23 5b 28 26 6f 70 74 |nes-down| #[(&opt|
|00002230| 69 6f 6e 61 6c 20 6e 29 | 20 22 08 c1 56 ab 82 08 |ional n)| "..V...|
|00002240| 12 c3 5c 6e 21 87 22 20 | 5b 6e 20 31 20 76 69 65 |..\n!." |[n 1 vie|
|00002250| 77 2d 64 65 66 61 75 6c | 74 2d 6c 69 6e 65 73 20 |w-defaul|t-lines |
|00002260| 73 63 72 6f 6c 6c 2d 64 | 6f 77 6e 5d 20 32 20 28 |scroll-d|own] 2 (|
|00002270| 23 24 20 2e 20 38 36 34 | 35 29 20 22 70 22 5d 29 |#$ . 864|5) "p"])|
|00002280| 0a 23 40 35 39 20 53 63 | 72 6f 6c 6c 20 75 70 20 |.#@59 Sc|roll up |
|00002290| 70 72 65 66 69 78 2d 61 | 72 67 20 6c 69 6e 65 73 |prefix-a|rg lines|
|000022a0| 2c 20 64 65 66 61 75 6c | 74 20 31 30 2c 20 6f 72 |, defaul|t 10, or|
|000022b0| 20 6c 61 73 74 20 61 72 | 67 75 6d 65 6e 74 2e 1f | last ar|gument..|
|000022c0| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 76 69 65 77 |.(defali|as 'view|
|000022d0| 2d 73 63 72 6f 6c 6c 2d | 73 6f 6d 65 2d 6c 69 6e |-scroll-|some-lin|
|000022e0| 65 73 2d 75 70 20 23 5b | 28 26 6f 70 74 69 6f 6e |es-up #[|(&option|
|000022f0| 61 6c 20 6e 29 20 22 08 | c1 56 ab 82 08 12 c3 5c |al n) ".|.V.....\|
|00002300| 6e 21 87 22 20 5b 6e 20 | 31 20 76 69 65 77 2d 64 |n!." [n |1 view-d|
|00002310| 65 66 61 75 6c 74 2d 6c | 69 6e 65 73 20 73 63 72 |efault-l|ines scr|
|00002320| 6f 6c 6c 2d 75 70 5d 20 | 32 20 28 23 24 20 2e 20 |oll-up] |2 (#$ . |
|00002330| 38 38 33 38 29 20 22 70 | 22 5d 29 0a 23 40 34 35 |8838) "p|"]).#@45|
|00002340| 20 47 6f 74 6f 20 70 72 | 65 66 69 78 20 61 72 67 | Goto pr|efix arg|
|00002350| 20 6c 69 6e 65 20 4e 2e | 20 20 4e 20 3d 20 31 20 | line N.| N = 1 |
|00002360| 62 79 20 64 65 66 61 75 | 6c 74 2e 2e 1f 0a 28 64 |by defau|lt....(d|
|00002370| 65 66 61 6c 69 61 73 20 | 27 76 69 65 77 2d 67 6f |efalias |'view-go|
|00002380| 74 6f 2d 6c 69 6e 65 20 | 23 5b 28 26 6f 70 74 69 |to-line |#[(&opti|
|00002390| 6f 6e 61 6c 20 6e 29 20 | 22 c0 09 21 87 22 20 5b |onal n) |"..!." [|
|000023a0| 67 6f 74 6f 2d 6c 69 6e | 65 20 6e 5d 20 32 20 28 |goto-lin|e n] 2 (|
|000023b0| 23 24 20 2e 20 39 30 32 | 35 29 20 22 70 22 5d 29 |#$ . 902|5) "p"])|
|000023c0| 0a 23 40 37 35 20 47 6f | 74 6f 20 70 72 65 66 69 |.#@75 Go|to prefi|
|000023d0| 78 20 61 72 67 20 6c 69 | 6e 65 20 4e 20 6f 72 20 |x arg li|ne N or |
|000023e0| 74 68 65 20 66 69 72 73 | 74 20 6c 69 6e 65 20 6f |the firs|t line o|
|000023f0| 66 20 74 68 65 20 6c 61 | 73 74 20 77 69 6e 64 6f |f the la|st windo|
|00002400| 77 66 75 6c 20 69 6e 20 | 62 75 66 66 65 72 2e 1f |wful in |buffer..|
|00002410| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 76 69 65 77 |.(defali|as 'view|
|00002420| 2d 6c 61 73 74 2d 77 69 | 6e 64 6f 77 66 75 6c 20 |-last-wi|ndowful |
|00002430| 23 5b 28 26 6f 70 74 69 | 6f 6e 61 6c 20 6e 29 20 |#[(&opti|onal n) |
|00002440| 22 08 ab 84 c1 5c 6e 21 | 87 c3 20 88 c4 c5 21 88 |"....\n!|.. ...!.|
|00002450| c6 c7 21 87 22 20 5b 63 | 75 72 72 65 6e 74 2d 70 |..!." [c|urrent-p|
|00002460| 72 65 66 69 78 2d 61 72 | 67 20 67 6f 74 6f 2d 6c |refix-ar|g goto-l|
|00002470| 69 6e 65 20 6e 20 65 6e | 64 2d 6f 66 2d 62 75 66 |ine n en|d-of-buf|
|00002480| 66 65 72 20 72 65 63 65 | 6e 74 65 72 20 2d 31 20 |fer rece|nter -1 |
|00002490| 6d 6f 76 65 2d 74 6f 2d | 77 69 6e 64 6f 77 2d 6c |move-to-|window-l|
|000024a0| 69 6e 65 20 30 5d 20 32 | 20 28 23 24 20 2e 20 39 |ine 0] 2| (#$ . 9|
|000024b0| 31 35 38 29 20 22 70 22 | 5d 29 0a 23 40 36 38 20 |158) "p"|]).#@68 |
|000024c0| 53 65 74 20 6d 61 72 6b | 20 61 6e 64 20 67 6f 20 |Set mark| and go |
|000024d0| 74 6f 20 61 20 70 6f 73 | 69 74 69 6f 6e 20 50 45 |to a pos|ition PE|
|000024e0| 52 43 45 4e 54 20 77 61 | 79 20 69 6e 74 6f 20 74 |RCENT wa|y into t|
|000024f0| 68 65 20 63 75 72 72 65 | 6e 74 20 62 75 66 66 65 |he curre|nt buffe|
|00002500| 72 2e 1f 0a 28 64 65 66 | 61 6c 69 61 73 20 27 76 |r...(def|alias 'v|
|00002510| 69 65 77 2d 67 6f 74 6f | 2d 70 65 72 63 65 6e 74 |iew-goto|-percent|
|00002520| 20 23 5b 28 26 6f 70 74 | 69 6f 6e 61 6c 20 70 65 | #[(&opt|ional pe|
|00002530| 72 63 65 6e 74 29 20 22 | c0 c1 21 88 65 5c 6e 64 |rcent) "|..!.e\nd|
|00002540| 65 5a 5f c3 a5 5c 5c 62 | 88 c4 79 88 c1 87 22 20 |eZ_..\\b|..y..." |
|00002550| 5b 73 65 74 2d 6d 61 72 | 6b 2d 63 6f 6d 6d 61 6e |[set-mar|k-comman|
|00002560| 64 20 6e 69 6c 20 70 65 | 72 63 65 6e 74 20 31 30 |d nil pe|rcent 10|
|00002570| 30 20 30 5d 20 34 20 28 | 23 24 20 2e 20 39 34 30 |0 0] 4 (|#$ . 940|
|00002580| 38 29 20 22 70 22 5d 29 | 0a 28 64 65 66 61 6c 69 |8) "p"])|.(defali|
|00002590| 61 73 20 27 76 69 65 77 | 2d 6d 6f 64 65 2d 64 65 |as 'view|-mode-de|
|000025a0| 73 63 72 69 62 65 20 23 | 5b 6e 69 6c 20 22 c0 c1 |scribe #|[nil "..|
|000025b0| 1a 1b c4 20 2a 87 22 20 | 5b 22 56 69 65 77 22 20 |... *." |["View" |
|000025c0| 76 69 65 77 2d 6d 6f 64 | 65 20 6d 61 6a 6f 72 2d |view-mod|e major-|
|000025d0| 6d 6f 64 65 20 6d 6f 64 | 65 2d 6e 61 6d 65 20 64 |mode mod|e-name d|
|000025e0| 65 73 63 72 69 62 65 2d | 6d 6f 64 65 5d 20 32 20 |escribe-|mode] 2 |
|000025f0| 6e 69 6c 20 6e 69 6c 5d | 29 0a 23 40 31 32 38 20 |nil nil]|).#@128 |
|00002600| 53 65 61 72 63 68 20 66 | 6f 72 77 61 72 64 20 66 |Search f|orward f|
|00002610| 6f 72 20 52 45 47 45 58 | 50 2e 20 20 49 66 20 72 |or REGEX|P. If r|
|00002620| 65 67 65 78 70 20 69 73 | 20 65 6d 70 74 79 2c 20 |egexp is| empty, |
|00002630| 75 73 65 20 6c 61 73 74 | 20 73 65 61 72 63 68 20 |use last| search |
|00002640| 73 74 72 69 6e 67 2e 0a | 57 69 74 68 20 70 72 65 |string..|With pre|
|00002650| 66 69 78 20 41 52 47 2c | 20 73 65 61 72 63 68 20 |fix ARG,| search |
|00002660| 66 6f 72 77 61 72 64 20 | 74 68 61 74 20 6d 61 6e |forward |that man|
|00002670| 79 20 6f 63 63 75 72 72 | 65 6e 63 65 73 2e 1f 0a |y occurr|ences...|
|00002680| 28 64 65 66 61 6c 69 61 | 73 20 27 76 69 65 77 2d |(defalia|s 'view-|
|00002690| 73 65 61 72 63 68 2d 66 | 6f 72 77 61 72 64 20 23 |search-f|orward #|
|000026a0| 5b 28 73 20 70 29 20 22 | c0 8e c1 5c 6e c3 98 ab |[(s p) "|...\n...|
|000026b0| 83 0c aa 81 5c 6e c5 89 | 0e 06 24 29 87 22 20 5b |....\n..|..$)." [|
|000026c0| 28 28 62 79 74 65 2d 63 | 6f 64 65 20 22 08 11 c2 |((byte-c|ode "...|
|000026d0| 0b 98 ac 82 0b 14 c5 87 | 22 20 5b 70 20 76 69 65 |........|" [p vie|
|000026e0| 77 2d 73 65 61 72 63 68 | 2d 61 72 67 20 22 22 20 |w-search|-arg "" |
|000026f0| 73 20 76 69 65 77 2d 73 | 65 61 72 63 68 2d 73 74 |s view-s|earch-st|
|00002700| 72 69 6e 67 20 6e 69 6c | 5d 20 32 29 29 20 72 65 |ring nil|] 2)) re|
|00002710| 2d 73 65 61 72 63 68 2d | 66 6f 72 77 61 72 64 20 |-search-|forward |
|00002720| 73 20 22 22 20 76 69 65 | 77 2d 73 65 61 72 63 68 |s "" vie|w-search|
|00002730| 2d 73 74 72 69 6e 67 20 | 6e 69 6c 20 70 5d 20 35 |-string |nil p] 5|
|00002740| 20 28 23 24 20 2e 20 39 | 37 32 38 29 20 22 73 56 | (#$ . 9|728) "sV|
|00002750| 69 65 77 20 73 65 61 72 | 63 68 3a 20 5c 6e 70 22 |iew sear|ch: \np"|
|00002760| 5d 29 0a 23 40 31 32 39 | 20 53 65 61 72 63 68 20 |]).#@129| Search |
|00002770| 62 61 63 6b 77 61 72 64 | 20 66 6f 72 20 52 45 47 |backward| for REG|
|00002780| 45 58 50 2e 20 20 49 66 | 20 72 65 67 65 78 70 20 |EXP. If| regexp |
|00002790| 69 73 20 65 6d 70 74 79 | 2c 20 75 73 65 20 6c 61 |is empty|, use la|
|000027a0| 73 74 20 73 65 61 72 63 | 68 20 73 74 72 69 6e 67 |st searc|h string|
|000027b0| 2e 0a 57 69 74 68 20 70 | 72 65 66 69 78 20 41 52 |..With p|refix AR|
|000027c0| 47 2c 20 73 65 61 72 63 | 68 20 66 6f 72 77 61 72 |G, searc|h forwar|
|000027d0| 64 20 74 68 61 74 20 6d | 61 6e 79 20 6f 63 63 75 |d that m|any occu|
|000027e0| 72 72 65 6e 63 65 73 2e | 1f 0a 28 64 65 66 61 6c |rrences.|..(defal|
|000027f0| 69 61 73 20 27 76 69 65 | 77 2d 73 65 61 72 63 68 |ias 'vie|w-search|
|00002800| 2d 62 61 63 6b 77 61 72 | 64 20 23 5b 28 73 20 70 |-backwar|d #[(s p|
|00002810| 29 20 22 c0 09 5c 6e 5b | 5c 22 87 22 20 5b 76 69 |) "..\n[|\"." [vi|
|00002820| 65 77 2d 73 65 61 72 63 | 68 2d 66 6f 72 77 61 72 |ew-searc|h-forwar|
|00002830| 64 20 73 20 70 5d 20 33 | 20 28 23 24 20 2e 20 31 |d s p] 3| (#$ . 1|
|00002840| 30 30 38 39 29 20 22 73 | 56 69 65 77 20 73 65 61 |0089) "s|View sea|
|00002850| 72 63 68 20 62 61 63 6b | 77 61 72 64 3a 20 5c 6e |rch back|ward: \n|
|00002860| 70 22 5d 29 0a 23 40 31 | 37 33 20 52 65 70 65 61 |p"]).#@1|73 Repea|
|00002870| 74 20 6c 61 73 74 20 76 | 69 65 77 20 73 65 61 72 |t last v|iew sear|
|00002880| 63 68 20 63 6f 6d 6d 61 | 6e 64 2e 20 20 49 66 20 |ch comma|nd. If |
|00002890| 61 20 70 72 65 66 69 78 | 20 61 72 67 20 69 73 20 |a prefix| arg is |
|000028a0| 67 69 76 65 6e 2c 20 75 | 73 65 20 74 68 61 74 0a |given, u|se that.|
|000028b0| 69 6e 73 74 65 61 64 20 | 6f 66 20 74 68 65 20 70 |instead |of the p|
|000028c0| 72 65 76 69 6f 75 73 20 | 61 72 67 2c 20 69 66 20 |revious |arg, if |
|000028d0| 74 68 65 20 70 72 65 66 | 69 78 20 69 73 20 6a 75 |the pref|ix is ju|
|000028e0| 73 74 20 61 20 2d 2c 20 | 74 68 65 6e 20 74 61 6b |st a -, |then tak|
|000028f0| 65 20 74 68 65 0a 6e 65 | 67 61 74 69 76 65 20 6f |e the.ne|gative o|
|00002900| 66 20 74 68 65 20 6c 61 | 73 74 20 70 72 65 66 69 |f the la|st prefi|
|00002910| 78 20 61 72 67 2e 1f 0a | 28 64 65 66 61 6c 69 61 |x arg...|(defalia|
|00002920| 73 20 27 76 69 65 77 2d | 72 65 70 65 61 74 2d 73 |s 'view-|repeat-s|
|00002930| 65 61 72 63 68 20 23 5b | 28 70 29 20 22 c0 09 5c |earch #[|(p) "..\|
|00002940| 6e ac 83 0b aa 8c 5c 6e | c4 61 ab 84 0b 5b aa 83 |n.....\n|.a...[..|
|00002950| c5 5c 6e 21 5c 22 87 22 | 20 5b 76 69 65 77 2d 73 |.\n!\"."| [view-s|
|00002960| 65 61 72 63 68 2d 66 6f | 72 77 61 72 64 20 76 69 |earch-fo|rward vi|
|00002970| 65 77 2d 73 65 61 72 63 | 68 2d 73 74 72 69 6e 67 |ew-searc|h-string|
|00002980| 20 70 20 76 69 65 77 2d | 73 65 61 72 63 68 2d 61 | p view-|search-a|
|00002990| 72 67 20 2d 20 70 72 65 | 66 69 78 2d 6e 75 6d 65 |rg - pre|fix-nume|
|000029a0| 72 69 63 2d 76 61 6c 75 | 65 5d 20 34 20 28 23 24 |ric-valu|e] 4 (#$|
|000029b0| 20 2e 20 31 30 33 34 37 | 29 20 22 50 22 5d 29 0a | . 10347|) "P"]).|
|000029c0| 28 62 79 74 65 2d 63 6f | 64 65 20 22 c0 c1 21 88 |(byte-co|de "..!.|
|000029d0| c0 c2 21 87 22 20 5b 70 | 72 6f 76 69 64 65 20 76 |..!." [p|rovide v|
|000029e0| 69 65 77 20 76 69 65 77 | 2d 6c 65 73 73 5d 20 32 |iew view|-less] 2|
|000029f0| 29 0a | |). | |
+--------+-------------------------+-------------------------+--------+--------+